package demo.websocket.server.example3.po;

import lombok.Data;

/**
 * @author zhangjg
 * @desc
 * @date 2023/05/27 17:09
 **/
@Data
public class Msg {

    private String userId;
    private String username;
    private String password;
    private String toUserId;
    private String payload;

    /**
     * 消息类型
     */
    private MessageType type;

    public enum MessageType {
        CHAT,
        JOIN,
        LEAVE
    }
}
